package com.liucxu.jiandanl.Utils;

import android.app.Activity;

/**
 * 屏幕工具类
 * Created by liuchenxu on 2016/8/6.
 */
public class DisplayUtils {
    public static int GetDisplayHeight(Activity activity){
        return activity.getWindowManager().getDefaultDisplay().getHeight();
    }

    public static int GetDisplayWidth(Activity activity){
        return activity.getWindowManager().getDefaultDisplay().getWidth();
    }
}
